From 7d5864cc6e597e40e5029699a9eca4b8d801b53d Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 19 Nov 2004 14:07:12 +0000 Subject: [PATCH] Add 'usbfree' target to Windows makefile to allow generation of NT-compatible executable. Bump version number. --- gpsbabel/Makefile | 4 ++-- gpsbabel/mingw/Makefile | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/gpsbabel/Makefile b/gpsbabel/Makefile index ecf6750e6..f0fc695e7 100644 --- a/gpsbabel/Makefile +++ b/gpsbabel/Makefile @@ -89,8 +89,8 @@ dep: (echo -n "internal_styles.c: mkstyle.sh " ; echo style/*.style ; /bin/echo -e '\t./mkstyle.sh > internal_styles.c || (rm -f internal_styles.c ; exit 1)' ) >> /tmp/dep echo Edit Makefile and bring in /tmp/dep -VERSIONU=1_2_5_beta11012004 -VERSIOND=1.2.5_beta11012004 +VERSIONU=1_2_5_beta11192004 +VERSIOND=1.2.5_beta11192004 #VERSIONU=1_2_4 #VERSIOND=1.2.4 diff --git a/gpsbabel/mingw/Makefile b/gpsbabel/mingw/Makefile index f5833cb7d..312473814 100644 --- a/gpsbabel/mingw/Makefile +++ b/gpsbabel/mingw/Makefile @@ -24,3 +24,17 @@ mkwintesto: mkwintesto.c wintesto.cmd: mkwintesto ./mkwintesto ../testo + +# The "usbfree" target is useful for generating an executable that +# works on NT 3.5 or 4.0 since it doesn't have USB support and tanks +# on our libsetupapi references. + +usbfree: + $(MAKE) INHIBIT_USB=-DNO_USB gpsbabel-usbfree.exe + +gpsbabel-usbfree.exe: $(OBJS) + $(CC) -static $(CFLAGS) $(OBJS) lib/libexpat.a -o gpsbabel-usbfree.exe + zip -j /tmp/gpsbabel-nousb-$(VERSIOND).zip gpsbabel-usbfree.exe + + + -- 2.30.2